package com.ynunicom.dc.dingdingcontractapp.entity.requestbodyentity;

import com.ynunicom.dc.dingdingcontractapp.entity.ContractEntity;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @author: jinye.Bai
 * @date: 2020/6/3 14:43
 */
@Data
public class ProcessStartRequestBody implements Serializable {
    private static final long serialVersionUID = 685373760265631396L;
    /**
     * 申请人uerId
     */
    @NotBlank
    private String userId;

    /**
     * 申请部门id
     */
    @NotBlank
    private String deptId;

    @Valid
    private ContractEntity contractEntity;

    public ProcessStartRequestBody(String userId, String deptId, String type, double money, long endDate,String disc,String name){
        this.userId = userId;
        this.deptId = deptId;
        this.contractEntity = new ContractEntity(type,money,endDate,disc,name);
    }



}
